package com.nwpu.coursesupport.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nwpu.coursesupport.entity.bean.BaseEntity;
import com.nwpu.coursesupport.entity.bean.Files;
import com.nwpu.coursesupport.enumeration.RoleType;
import com.nwpu.coursesupport.enumeration.Status;
import com.nwpu.coursesupport.enumeration.TaskType;
import lombok.*;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Task extends BaseEntity{

    private Integer courseId;
    private String title;
    private TaskType type;
    private String description;
    private String requirement;
    private Files attachment;
    @JsonIgnore
    private String attachmentBytes;

    private String standardAnswer;
    @JsonIgnore
    private String answerAttachmentBytes;
    private Files answerAttachment;

    private Status isQuote;
    private Integer createId;
    private String createName;
    private RoleType roleType;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    private Status isAddToGrade;
    private double ratio;
    private Boolean isSelect;
    private float fullMark;
    private float average;
    private String content;
}
